//
//  DDCattleResume.m
//  DingDongZP
//
//  Created by 杨政涛 on 2017/1/5.
//  Copyright © 2017年 51ledian.com. All rights reserved.
//

#import "DDCattleResume.h"

@implementation DDCattleResume

- (void)queryCattleResumeStateWithCattleUserID:(NSString *)cattleUserid SuccessBlock:(successBlock)successBlock failBlock:(faileBlock)failBlock
{

    NSString *URLString = [[DDAPIGenerate sharedInstance] NewAPI:@"jobfinder.php?act=resumeShowState"];
    
    NSMutableDictionary *params = [@{} mutableCopy];
    
    if (!params[@"user_id"]) {
        [params setObject:cattleUserid forKey:@"user_id"];
    }

    DDNetWorkManager *manager = [DDNetWorkManager shareManager];
    
    [manager POST:URLString parameters:params success:successBlock failure:failBlock];
}

- (void)saveCattleResumeStateWithCattleUserID:(NSString *)cattleUserid  resumeShow:(NSString *)resumeShow SuccessBlock:(successBlock)successBlock failBlock:(faileBlock)failBlock
{

    NSString *URLString = [[DDAPIGenerate sharedInstance] NewAPI:@"jobfinder.php?act=resumeShowStateSave"];
    
    NSMutableDictionary *params = [@{} mutableCopy];
    
    if (!params[@"user_id"]) {
        [params setObject:cattleUserid forKey:@"user_id"];
    }
    
    if (!params[@"resume_show"]) {
        [params setObject:resumeShow forKey:@"resume_show"];
    }
    
    DDNetWorkManager *manager = [DDNetWorkManager shareManager];
    
    [manager POST:URLString parameters:params success:successBlock failure:failBlock];

}

@end
